import BuffUtil from '@/BuffUtil';
import UnitSpellEvent from '@/event/UnitSpellEvent';
export default class Item_狂躁熊皮 {
    static id = 'Akzx';
    static 名称: string = '狂躁熊皮';
    static 描述: string = '极大提升生命力';
    static 图标: string = 'ReplaceableTextures\\CommandButtons\\BTNEnchantedBears.blp';
    static buffId: string = 'buff_item_kuangzaoxiongpi';
    static buffType: AppBuffType = {
        id: 'buff_item_kuangzaoxiongpi',
        name: Item_狂躁熊皮.名称,
        ubertip: Item_狂躁熊皮.描述,
        art: Item_狂躁熊皮.图标,
        attribute: {
            strength: 100,
            agility: 100,
            life_p: 1,
        },
        dur: 12,
        targetAttach: 'origin',
        targetArt: 'units\\creeps\\PolarFurbolg\\PolarFurbolg.mdx',
    };
    static 释放(x: number, y: number, 来源?: unit, 目标?: unit, d?: any) {
        BuffUtil.addBuff(来源, Item_狂躁熊皮.buffId, 来源);
    }
    constructor() {
        BuffUtil.registerBuffType(Item_狂躁熊皮.buffType);
        se.onUnitSpellEffect(Item_狂躁熊皮.spellEffect, Item_狂躁熊皮.id);
    }
    static spellEffect(this: void, d: UnitSpellEvent) {
        Item_狂躁熊皮.释放(d.spellTargetX, d.spellTargetY, d.trigUnit, d.spellTargetUnit, d);
    }
}
